/**
 * @Description: 订单列表-订单-店铺原型
 * @author tao.xie
 * @date 2019-02-25
*/

import SKU from './SKU.js'

export default class StoreOrder {
  /**
   *
   * @param storeID
   * @param storeName
   * @param storeLogo
   * @param skuList
   */
  constructor (storeID, storeName, storeLogo, skuList) {
    this.storeID = storeID
    this.storeName = storeName
    this.storeLogo = storeLogo
    this.skuList = []
    skuList.map(sku=>{
      this.skuList.push(new SKU(
        sku.SPU_ID,
        sku.SKU_ID,
        sku.SKU_NAME,
        sku.SKU_PROPS,
        sku.SKU_PROPS_NAME,
        sku.SKU_PIC,
        sku.LIST_PRICE,
        sku.SKU_BUY_PRICE,
        sku.SKU_NUM,
        sku.REFUNDABLE_FEE,
        sku.REFUND_ID,
        sku.COMMENT_STATE,
        sku.REFUND_STATE,
        sku.OP,
        sku.STYPE
      ))
    })
  }
}